

$(function(){
    $(".search-c-t").toggle(
        function(){
            $("#keyword").css({"display":"block"})
            $("#keyword ul li").click(
                function(){$(".search-c-t input").val($(this).html());
                })
        },
        function(){$("#keyword").css({"display":"none"})}
    )
})
$(function(){

    $(".rotate").hover(
        function(){$(".roimg").css({"transform":"rotate(180deg)","animation":"roimg  1s liear"})},
        function(){$(".roimg").css({"transform":"rotate(0deg)"})}
    )
    $(".navright ul li").hover(
        function(){$(this).find("div:nth-child(2)").css({"display":"block"})},
        function(){$(this).find("div:nth-child(2)").css({"display":"none"})}
    )
    $(".support-fir").hover(
        function(){
            $(".biaozhu-a").css({"display":"none"});
            $(".biaozhu-b").css({"display":"none"});
        },
        function(){
            $(".biaozhu-a").css({"display":"block"});
            $(".biaozhu-b").css({"display":"block"});
        }
    )
    $(".support-sec").hover(
        function(){
            $(".biaozhu-a").css({"display":"none"});
            $(".biaozhu-b").css({"display":"none"});
        },
        function(){
            $(".biaozhu-a").css({"display":"block"});
            $(".biaozhu-b").css({"display":"block"});
        }
    )
    $(".nav-fir").hover(
        function(){
            $(".nav-sec").css({"display":"block"});
        },
        function(){
            $(".nav-sec").css({"display":"none"});
        }
    )
    $(".nav-sec").hover(
        function(){
            $(".biaozhu-a").css({"display":"none"});
            $(".biaozhu-b").css({"display":"none"});
        },
        function(){
            $(".biaozhu-a").css({"display":"block"});
            $(".biaozhu-b").css({"display":"block"});
        }
    )
})


$(function(){

    $(".biaozhu-a").click(function(){
        $(".brandsec").css({"display":"block"});
        $(".brand-serch").css({"display":"block"});
        $(".brand-content").css({"display":"block"});
        $(".brand-btn").css({"display":"block"});
        $(".brandfir").css({"display":"none"});
        $(".biaozhu").css({"display":"none"});
        $("#choose-a").css({"height":"328px","width":"1145px"});
        $("#choose-a dt").css({"height":"328px"});
        $("#choose-a dd").css({"height":"328px","width":"980px"})
    })

    $(".biaozhu-b").click(function(){
        $(".biaozhu").css({"display":"block"});
        $(".biaozhu").css({"top":"10px","right":"10px"});
        $(".biaozhu-b p:nth-child(1)").css({"display":"none"});
        $(".biaozhu-b p:nth-child(2)").css({"display":"block"});
        $(".brandfir").css({"display":"none"});
        $(".brandsec").css({"display":"block"});
        $(".brand-serch").css({"display":"block"});
        $(".brand-content").css({"display":"block"});
        $(".brand-btn").css({"display":"none"});
        $("#choose-a").css({"height":"328px","width":"1145px"});
        $("#choose-a dt").css({"height":"328px"});
        $("#choose-a dd").css({"height":"328px","width":"980px"})
    })
    /*-----------------����ť---------------------*/
    $("#biaozhu-p2").click(function(){
        $("biaozhu-p1").css({"display":"block"});
        $(".brandsec").css({"display":"none"});
        $(".brandfir").css({"display":"block"});
        $(".biaozhu").css({"display":"block"});
        $("#choose-a").css({"height":"122px"});
        $("#choose-a dt").css({"height":"122px"});
        $("#choose-a dd").css({"height":"122px"})
    })
    /*-----------------ȡ����ť---------------------*/
    $(".bra-btn2").click(function(){
        $(".brandsec").css({"display":"none"});
        $(".brandfir").css({"display":"block"});
        $(".biaozhu").css({"display":"block"});
        $("#choose-a").css({"height":"122px"});
        $("#choose-a dt").css({"height":"122px"});
        $("#choose-a dd").css({"height":"122px"})
    })

    $("#inp").click(function(){
        $(this).attr({"placeholder":""});
        $(this).css({"border":"2px solid #A5C7FE"})
    })


    $("#maincontent span").toggle(
        function(){
            $(this).find(".cuored").css({"display":"block"});
            $(this).css({"border":"1px solid #EE0A3B"})
            $(".btnmarker").css({"display":"none"});
            $(".bra-btn1").css({"backgroundColor":"#EE0A3B","color":"#fff","border":"1px solid black"})
        },
        function(){
            $("#cuogreen").css({"display":"none"})
            $(this).find(".cuored").css({"display":"none"});
            $(this).css({"border":"1px solid #B0A59F"})
            $(".btnmarker").css({"display":"none"});
            //$(".bra-btn1").css({"backgroundColor":"#EE0A3B","color":"#fff","border":"1px solid black"})
        }
    )

    $("#maincontent span .cuogreen").click(function(){
        $(".cuored").css({"display":"none"});
        $(".cuogreen").css({"display":"none"});
        $(this).css({"border":"1px solid #999999"})
    })
})

$(function(){
    $(".city span:nth-child(2)").click(function(){
        $(".choosecity").css("display","block")
    });
    $(".choosecity ul li").click(function(){
        $(".city span:nth-child(2)").html($(this).html())
        $(".choosecity").css("display","none")
    });
})

$(function(){
    $(".searchmore-money span input").focus(function(){
        $(".searchmore-money").css({"backgroundColor":"#EFECEB"});
        $(".sure").css("display","block");
        $(this).attr({"placeholder":""})
    });
    $(".searchmore-money span input").blur(
        function(){
            $(".sure").css({"display":"none"});
            $(".searchmore-money").css({"backgroundColor":"#fff"});
            $(this).attr({"placeholder":"��������"})
        })
    $(".ready button:nth-child(1)").click(function(){
        $(".searchmore-money span input").val("")
    });
    $(".sure button:nth-child(2)").click(function(){
        $(".searchmore-money").css({"backgroundColor":"none"});
        $(".sure").css("display","none")
    })
})